﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Imaginecup.Recycling.Object;

namespace Imaginecup.util.Funtion
{
    public class UserRandom
    {
        public static Random rand = new Random();

        public static Direction GetRandomDirection()
        {
            Direction dir = Direction.None;
            switch(rand.Next(0, 2))
            {
                case 0:
                    dir = Direction.Left;
                    break;
                case 1:
                    dir = Direction.Right;
                    break;
            }
            return dir;
        }
    }
}
